Method and apparatus for printing data with predetermined format using bluetooth communication, and method of storing template data

ABSTRACT

A method and apparatus for printing data with a predetermined format transmitted from a terminal device using Bluetooth communication. The method includes receiving the data having the predetermined format from the terminal device using Bluetooth communication; combining the received data having the predetermined format with template data corresponding to the terminal device stored in a printing apparatus; and printing the combined data. Accordingly, it is possible to obtain the same printing result even when different printing apparatuses print the data by transmitting the data with the predetermined format from the terminal device to the different printing apparatuses using Bluetooth communication, and to obtain the same printing result when printing the data with the predetermined format by transmitting the data with the predetermined format from the terminal device or transmitting data obtained by combining the data with the predetermined format with the template data from the terminal device.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Continuation application of application Ser. No.12/042,364 filed Mar. 5, 2008, and claims the benefit of Korean PatentApplication No. 2007-63899, filed in the Korean Intellectual PropertyOffice on Jun. 27, 2007, the disclosure of which is incorporated hereinby reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

Aspects of the present invention relate to a method and apparatus forprinting data with a predetermined format from a terminal device usingBluetooth communication.

2. Description of the Related Art

Recently, short-range wireless communications within a range of about 10m have been developed. Even though a conventional wireless LAN has avalid transmission range equal to or greater than 100 m, short-rangewireless communication has a shorter transmission range. Since the powerused in short-range wireless communications is low, short-range wirelesscommunication is suitable for an information processing apparatus havinga limited battery capacity, such as a mobile phone and a personaldigital assistant (PDA). The short-range wireless communication methodincludes a Bluetooth communication method. Recently, a terminal device,such as a mobile phone and a PDA, which has a communication functionaccording to Bluetooth specifications, and a conventional printingapparatus for printing data received from the terminal device usingBluetooth communication, have been distributed.

Bluetooth communication supports the transmission of data with apredetermined format, such as vCard, vCalendar, vMessage, and vNote.When printing the data with one of the aforementioned formats from theterminal device using Bluetooth communication, the terminal devicetransmits the data with the aforementioned predetermined format ortransmits data obtained by combining the vCard data with template data.When the terminal device transmits the vCard data, a “send” command isinput from the terminal device. When the terminal device transmits thedata by combining the vCard data with the template data, a “print”command is input from the terminal device. The terminal device transmitsdata using an object push profile (OPP) in response to the “send”command, and transmits data using a basic printing profile (BPP) inresponse to the “print” command.

When the conventional printing apparatus receives vCard data from theterminal device, the conventional printing apparatus combines the vCarddata with template data provided by the conventional printing apparatusand prints the combined data. When the conventional printing apparatusreceives data obtained by combining vCard data with template data, theconventional printing apparatus prints the received data withoutadditional processing.

The template data provided by the conventional printing apparatuses aredifferent from one another depending on the particular printingapparatus. Accordingly, when transmitting the same vCard data from aterminal device to the conventional printing apparatuses, printingresults printed by the conventional printing apparatuses differ. Inaddition, template data used for combining vCard data with template datain the terminal device may differ from the template data that isprovided by the conventional printing apparatus. Accordingly, theprinting result obtained by transmitting vCard data is different fromthe printing result obtained by transmitting combined vCard and templatedata.

SUMMARY OF THE INVENTION

Aspects of the present invention provide a method and apparatus forprinting data capable of obtaining the same printing result even whendifferent printing apparatuses print data with a predetermined format bytransmitting the data with the predetermined format from a terminaldevice to the different printing apparatuses using Bluetoothcommunication, and capable of obtaining the same printing result whenprinting data with a predetermined format by transmitting the data withthe predetermined format from the terminal device or transmitting dataobtained by combining data with a predetermined format with templatedata from the terminal device, and a computer-readable recording mediumhaving embodied thereon a computer program to execute the method.

According to an aspect of the present invention, a method of printingdata having a predetermined format is provided. The method includesreceiving the data having the predetermined format from the terminaldevice using Bluetooth communication; and combining the received datahaving the predetermined format with template data corresponding to theterminal device and stored in a printing apparatus, and printing thecombined data.

According to another aspect of the present invention, the method furtherincludes receiving combination data including the data having thepredetermined format and template data from the terminal device; andextracting the template data from the received combination data andstoring the extracted template data as the stored template datacorresponding to the terminal device.

According to another aspect of the present invention, the predeterminedformat is at least one of a plurality of formats including a vCardformat, a vCalendar format, a vMessage format, and a vNote format.

According to another aspect of the present invention, the method furthercomprises mapping and storing the template data corresponding to theterminal device with identification information of the terminal device.

According to another aspect of the present invention, the extracting ofthe template data comprises storing the extracted template data, orupdating the previously stored template data with the extracted templatedata, when the template data corresponding to the terminal device isalready stored.

According to another aspect of the present invention, the method furtherincludes updating the stored template data when at least one attributethat is not included in the stored template data is included in thereceived data with the predetermined format.

According to another aspect of the present invention, the combinationdata and the template data are an XHTML-Print type.

According to another aspect of the present invention, an apparatus toprint data having a predetermined format is provided. The apparatusincludes a communication unit to receive data having the predeterminedformat from a terminal device using Bluetooth communication; a storageunit to store template data corresponding to the terminal device; aprinting data generator to combine the received data having thepredetermined format with the stored template data and to generate printdata using the combined data; and a printing unit to print the generatedprint data.

According to another aspect of the present invention, a computerreadable recording medium is provided, having recorded thereon a methodof printing data with a predetermined format, the data being receivedfrom a terminal device using Bluetooth communication.

Additional aspects and/or advantages of the invention will be set forthin part in the description which follows and, in part, will be obviousfrom the description, or may be learned by practice of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

These and/or other aspects and advantages of the invention will becomeapparent and more readily appreciated from the following description ofthe embodiments, taken in conjunction with the accompanying drawings ofwhich:

FIG. 1 is a schematic diagram illustrating a printing system that printsdata that is transmitted from a terminal device using Bluetoothcommunication, according to an embodiment of the present invention;

FIG. 2 is a block diagram illustrating a printing apparatus that printsformat data transmitted from the terminal device using Bluetoothcommunication, according to an embodiment of the present invention;

FIG. 3 is a flowchart of a process of printing format data that istransmitted from the terminal device using Bluetooth communication,according to an embodiment of the present invention;

FIG. 4 is a flowchart illustrating operations shown in FIG. 3 in detail,according to an embodiment of the present invention;

FIGS. 5A and B are flowcharts of a process of printing vCard data thatis transmitted from a terminal device using Bluetooth communication,according to another embodiment of the present invention;

FIG. 6 illustrates an example of a vCard data file;

FIG. 7 illustrates an example of a combination data file obtained bycombining vCard data with template data, according to an embodiment ofthe present invention;

FIG. 8 illustrates an example of a result of printing data obtained bycombining vCard data with template data;

FIG. 9 illustrates another example of a vCard data file;

FIG. 10 illustrates an example of template data stored in a printingapparatus;

FIG. 11 illustrates an example of template data that is updatedaccording to an embodiment of the present invention; and

FIG. 12 illustrates an example of a type in which template data isstored in a storage unit according to an embodiment of the presentinvention.

DETAILED DESCRIPTION OF THE EMBODIMENTS

Reference will now be made in detail to the present embodiments of thepresent invention, examples of which are illustrated in the accompanyingdrawings, wherein like reference numerals refer to the like elementsthroughout. The embodiments are described below in order to explain thepresent invention by referring to the figures.

FIG. 1 is a schematic diagram illustrating a printing system that printsdata transmitted from a terminal device 115 using Bluetoothcommunication, according to an embodiment of the present invention. Theprinting system includes a printing apparatus 110 and the terminaldevice 115. Although a single printing apparatus 110 and a singleterminal device 115 are shown in FIG. 1, the present invention is notlimited thereto. The printing system may include a plurality of printingapparatuses 110 and a plurality of terminal devices 115. In this case,the terminal devices 115 can communicate data with the printingapparatuses 110 through Bluetooth communication.

The printing apparatus 110 may be a printer, a facsimile machine, or amulti-function device. The terminal device 115 can transmit data that isto be printed to the printing apparatus 110. The terminal device 115 maybe a mobile phone, a camera, a personal digital assistant, or a personalcomputer (PC). The terminal device 115 and the printing apparatus 110can communicate data with each other using a Bluetooth communicationmethod, or other wireless communication method. As can be seen from thefollowing description, aspects of the present invention are not limitedto Bluetooth communication. Any form of wireless communication can beused, such as short range wireless communication. The terminal device115 transmits data to the printing apparatus 110 with a predeterminedformat, such as a vCard format, a vCalendar format, an iCalendar format,a vMessage format, a vNote format, and the like. The printing apparatus110 can combine the received data having the predetermined format withtemplate data stored in the printing apparatus 110 in order to print thecombined data.

The vCard format and the vCalendar format are defined by the InternetMail Consortium and related to input and schedule management for anelectronic business card and a calendar, respectively. The vMessageformat and the vNote format are defined by Infrared mobile communicationand are respectively related to a message and a note.

When the terminal device 115 transmits data obtained by combining thedata having the predetermined format with the template data, theprinting apparatus 110 may print the received data without changing thedata. For convenience of description, hereinafter the data with thepredetermined format is referred to as format data, and the dataobtained by combining the format data with the template data is referredto as combination data. For example, data in the vCard format isreferred to as vCard data.

The terminal device 115 can use an object push profile (OPP) as aprofile to transmit format data. The terminal device 115 can use a basicprinting profile (BPP) as a profile to transmit combination data. Aprofile is a rule that defines how to use a protocol for eachapplication. The profile discloses items that have to be essentially orselectively embodied for each application.

FIG. 2 shows the printing apparatus 110 that prints format datatransmitted from the terminal device 115 using Bluetooth communication,according to an embodiment of the present invention. The printingapparatus 110 includes a communication unit 120, a data analyzer 122, atemplate extractor 124, a terminal device identification informationreader 126, a user interface 128, a controller 130, a storage unit 132,a print data generator 138, and a printing unit 140. According to otheraspects of the present invention, the printing apparatus 110 may includeadditional and/or different units. Similarly, the functionality of twoor more of the above units may be combined into a single component.

The communication unit 120 receives data from the terminal device 115that is to be printed, such as format data, combination data, generaldocument data, or image data, using Bluetooth communication. Whenreceiving data to be printed from the terminal device 115, the terminaldevice identification information reader 126 reads identificationinformation of the terminal device 115 that transmits the data. Theidentification information of the terminal device 115 may be a Bluetoothdevice (BD) address.

The storage unit 132 is a storage space for storing the template data.In the storage unit 132, template data for each terminal device 115,which is extracted by the template extractor 124, and the previouslystored template data, which is stored in the printing apparatus 110, arestored in separate spaces.

The data analyzer 122 analyzes the data that is received through thecommunication unit 120. Whether the received data is the format data,combination data, general document data, or image data is determined byanalyzing the received data. Whether the received data is the formatdata is determined based on the presence of attribute items having thevCard format in the received data. Whether the received data is thecombination data is determined based on is the presence of a tagincluded in the combination data.

As a result of the analysis of the data analyzer 122, when the receiveddata is the combination data, the template extractor 124 extracts thetemplate data from the combination data. The template extractor 124stores the extracted template data by mapping the extracted templatedata with the identification information of the terminal device 120 asread by the terminal device identification information reader 126. Whenthe template data corresponding to the terminal device 115 is previouslystored in the storage unit 132, the template extractor 124 may store theextracted template data instead of the stored template data oradditionally store the extracted template data independently of thepreviously stored template data.

FIG. 12 shows an example of a format in which template data is stored inthe storage unit 132, according to an embodiment of the presentinvention. One or more template data is stored for each terminal device115 and for each of the data formats (vCalendar, vCard, etc.).

The print data generator 138 generates print data using data receivedfrom the terminal device 115 through the communication unit 120. As aresult of the analysis of the data analyzer 122, when the received datais format data, the print data generator 138 generates combination databy combining the received data with template data corresponding to theterminal device 115 that transmits the data stored in the storage unit132, and transforms the generated combination data into print data. Ifthere is at least one attribute that is not included in the templatedata corresponding to the terminal device 115 among attributes of thereceived format data, the template data is updated based on the at leastone attribute. The combination data is generated by combining theupdated template data with the received format data. The print datagenerator 138 generates print data by transforming the combination datainto data that can be printed by the printing unit 140. However, whenthe template data corresponding to the terminal device 115 is not storedin the storage unit 132, the print data generator 138 generates thecombination data by combining the template data that is stored in thestorage unit 132 and provided by the printing apparatus 110 with thereceived format data. The print data generator 138 transforms thegenerated combination data into print data. If the received data is thecombination data, general document data, or general image data, the datais directly transformed into the print data.

The user interface 128 receives various commands from a user, such as aprint command and a command for storing template data, and displaysinformation to the user regarding the status of the printing apparatus110 or functions of the printing apparatus 110. The controller 130controls the printing unit 140 and each component in the printingapparatus 110 based on a user command that is input through the userinterface 128 and a result that is processed by the communication unit120 and the data analyzer 122. The printing unit 140 prints print datathat is generated by the print data generator 138. Various printingmethods may be applied to print the print data, such as anelectro-photographic method, an inkjet method, and the like.

FIG. 3 is a flowchart of a process of printing format data that istransmitted from a terminal device using Bluetooth communication,according to an embodiment of the present invention. Hereinafter, forconvenience of description, the vCard data format is used, although anyformat may be employed, such as vCalendar, vMessage, or vNote. Althoughthe formats have different attributes from each other, the formats aresubstantially the same type. Accordingly, aspects of the presentinvention may be applicable to other data formats, such as vCalendar,iCalendar, vMessage, and vNote in addition to vCard.

In operation 310, the printing apparatus 110 receives the combinationdata obtained by combining the vCard data with the template data fromthe terminal device. The combination data may be an XHTML-PRINT type. Anexample of a combination data file is shown in FIG. 7.

In operation 320, the printing apparatus 110 extracts the template datafrom the received combination data. The combination data file includesattribute items and values corresponding to the attribute items. Asshown in FIG. 7, the attribute items represent a mobile phone number“Mobile”, a home phone number “Home”, and the like. For example, a valuecorresponding to the mobile phone number “Mobile” is 017-500-1234, and avalue corresponding to the home phone number “Home” is 031-302-1234. Theprinting apparatus 110 can extract template data by deleting valuescorresponding to attribute items from the received combination data.

In operation 330, the printing apparatus 110 maps the template dataextracted in operation 320 with identification information of theterminal device, and stores the template data. If the printing apparatushas previously stored basic template data provided by the printingapparatus 110, the template data extracted in operation 320 and thetemplate data provided by the printing apparatus may be storedseparately. When operations 310 to 330 are performed, the printingapparatus 110 stores template data corresponding to the terminal device115 that transmits the combination data.

In operation 340, the printing apparatus 110 receives vCard data fromthe terminal device 115. The vCard data may be a text file. An extensionof the text file may be “vcf”. FIG. 6 shows an example of a vCard datafile that includes attribute items and values corresponding to theattribute items similar to the combination data file.

In operation 350, the printing apparatus 110 generates combination databy combining the vCard data received in operation 340 with the templatedata stored in operation 330. The printing apparatus 110 transforms thecombination data into print data and prints the print data. FIG. 8 showsan example of a result of printing the combination data.

FIG. 4 is a flowchart showing operations 310 to 330 shown in FIG. 3 indetail, according to an embodiment of the present invention. Inoperation 410, the printing apparatus 110 receives information from theuser regarding a selection of format data of which template data is tobe stored among the vCard data, vCalendar data, vMessage data, and vNotedata. Here, the user selects the vCard format.

In operation 420, the terminal device 115 transmits the vCard data inresponse to the user command. The terminal device 115 transmits a datastream including the vCard data. The data stream includes identificationinformation unique to the terminal device 115, for example, a BDaddress. The vCard data is transmitted not to print the vCard data, butto allow the printing apparatus 110 to read the identificationinformation unique to the terminal device 115.

In operation 430, the printing apparatus 110 reads identificationinformation of the terminal device 115 from the data stream that isreceived in operation 420.

In operation 440, the terminal device 115 transmits the combination dataobtained by combining the vCard data with the template data in responseto the user command. In operation 450, the printing apparatus 119extracts template data from the received combination data.

In operation 460, the printing apparatus 110 maps the template data thatis extracted in operation 450 with the identification information of theterminal device that is read in operation 430. The printing apparatus110 stores the template data in the storage unit 132.

FIGS. 5A and 5B are flowcharts of a process of printing vCard data thatis transmitted from a terminal device using Bluetooth communication,according to another embodiment of the present invention. Operations 310to 330 shown in FIG. 3 or the operations shown in FIG. 4 may or may notbe performed. If the operations of FIG. 3 or 4 are performed, thetemplate data corresponding to the terminal device 115 is mapped withthe terminal device 115 and stored in the printing apparatus 110.

In operation 510, the printing apparatus 110 receives data that is to beprinted from the terminal device 115. In operation 515, the printingapparatus 110 reads identification information of the terminal device115 from the data received in operation 510.

In operation 520, the printing apparatus 110 analyzes the data receivedin operation 510 and determines whether the received data is vCard data,combination data obtained by combining vCard data with template data,general document data, or image data. In operation 525, if the receiveddata is the combination data, the process proceeds to operations 530 and590. Otherwise, the process proceeds to operation 565.

In operation 530, the printing apparatus 110 extracts template data fromthe received combination data. As described above, the printingapparatus 110 can extract template data by deleting values correspondingto attribute items from the received combination data.

In operation 535, the printing apparatus 110 determines whether thetemplate data corresponding to the terminal device that transmits datais stored. If the template data corresponding to the terminal device 115is stored, the process proceeds to operation 545. Otherwise, the processproceeds to operation 550.

In operation 550, the printing apparatus 110 maps the template dataextracted in operation 530 with the identification information of theterminal device 115 that is read in operation 515 and stores thetemplate data.

In operation 545, the printing apparatus 110 may additionally store thetemplate data extracted in operation 530 independently of the previouslystored template, or may update the previously stored template data intothe extracted template data as selected by the user through the userinterface 128 of the printing apparatus 110. Operation 545 may beperformed based on the selection result of the user. Alternatively, itmay be previously determined with respect to the printing apparatus 110whether the extracted template data is additionally stored or thepreviously stored template data is updated. If the storage space of theprinting apparatus is sufficient, the printing apparatus may be designedso that the extracted template data is additionally stored. If thestorage space of the printing apparatus is not sufficient, the printingapparatus 110 may be designed so that the previously stored templatedata is updated. Since the printing apparatus 110 may be designed sothat the extracted template data is additionally stored, when there area plurality of stored template data corresponding to the terminal device115, the printing apparatus 110 displays each of the stored templatedata as a thumbnail through the user interface 128, so that the user mayselect the desired template data.

A process of updating the previously stored template data into theextracted template data is described below. Here, the previously storedtemplate data has a type as shown in FIG. 10, and the combination datareceived from the terminal device 115 has a type obtained by combiningthe vCard data shown in FIG. 9 with the template data corresponding tothe vCard data. As shown in FIGS. 9 and 10, the attribute items of thereceived combination data includes an attribute item for representing anaddress “ADD” that is not included in the previously stored templatedata. In this case, the previously stored template data shown in FIG. 10is updated into the template data extracted from the receivedcombination data. Accordingly, the updated template data has a type asshown in FIG. 11.

Returning to operation 525, as a result of the analysis in operation520, if the received data is not the combination data, the processproceeds to operation 565. In operation 565, the printing apparatus 110determines whether the data received from the terminal device is vCarddata. If the received data is the vCard data, the process proceeds tooperation 570. Otherwise, the process proceeds to operation 590. If thereceived data is not the vCard data, then the received data may begeneral document data or image data.

In operation 570, the printing apparatus 110 determines whether thetemplate data corresponding to the terminal device 115 that transmittedthe data is previously stored. If the template data is previouslystored, the process proceeds to operation 575. Otherwise, the processproceeds to operation 578. In operation 578, the printing apparatus 110combines the vCard data that is received from the terminal device 115with template data that is stored in the printing apparatus 110 andprovided by the printing apparatus 110.

In operation 575, the printing apparatus 110 determines whether there isan attribute corresponding to the terminal device that is not includedin the previously stored template data among attributes of the vCarddata received from the terminal device 115. If the attributecorresponding to the terminal device is present, the process proceeds tooperation 580. Otherwise, the process proceeds to operation 585.

In operation 580, the printing apparatus 110 updates the previouslystored template data corresponding to the terminal device 115. Forexample, if the vCard data received from the terminal device has thetype as shown in FIG. 9 and the previously stored template data has thetype as shown in FIG. 10, then the attribute for representing an address“ADD” among attributes of the received vCard data does not exist in thetemplate data as shown in FIG. 10. Accordingly, in this case, theprinting apparatus 110 updates the template data by adding the attribute“ADD” and a necessary tag to the stored template data. The updatedtemplate data may have the type as shown in FIG. 11.

In operation 585, the printing apparatus 110 generates combination databy combining the vCard data with the previously stored template datacorresponding to the terminal device or the template data that isupdated in operation 580.

In operation 590, the printing apparatus 110 generates print data bytransforming the received combination data, the combination data that iscombined in operation 585 or 578, received general document data, orimage data, so that the printing unit 140 in the printing apparatus 110can print the received combination data, the combination data that iscombined in operation 585 or 568, received general document data, orreceived image data. In operation 595, the printing apparatus 110 printsthe print data that is generated in operation 590.

According to aspects of the present invention, when the format data(such as the vCard data) is received and printed, not the template datathat is provided by the printing apparatus but the template data that isprovided by the terminal device is used. Accordingly, when the formatdata is printed using the printing apparatus according to aspects of thepresent invention, a printing operation is performed uniformly with eachprinting apparatus based on the template data that is provided by theterminal device.

In addition, it is possible to obtain the same printing result, sincethe same template data is used when transmitting format data from aterminal device by previously receiving combination data from theterminal device, extracting template data from the received combinationdata and storing the extracted template data or when transmittingcombination data obtained by combining format data with template data.Furthermore, it is possible to obtain a printing result unique to theterminal device only by transmitting the format data withouttransmitting the combination data from the terminal device. Accordingly,it is possible to reduce the time used to combine the format data withthe template data in the terminal device. In addition, it is possible toreduce a transmission time, since the format data has a smaller sizethan the combination data.

According aspects of the present invention, it is possible to obtain thesame printing result even when different printing apparatuses print datawith a predetermined format by transmitting the data with thepredetermined format from a terminal device to the different printingapparatuses using Bluetooth communication, and to obtain the sameprinting result when printing data with a predetermined format bytransmitting the data with the predetermined format from the terminaldevice or transmitting data obtained by combining data with apredetermined format with template data from the terminal device.

In addition, aspects of the present invention can also be embodied ascomputer readable codes on a computer readable recording medium. Thecomputer readable recording medium may be any data storage device thatcan store data which can be thereafter read by a computer system.Examples of the computer readable recording medium also includeread-only memory (ROM), random-access memory (RAM), CD-ROMs, DVDs,magnetic tapes, floppy disks, and optical data storage devices. Thecomputer readable recording medium can also be distributed over networkcoupled computer systems so that the computer readable code is storedand executed in a distributed fashion. Also, functional programs, codes,and code segments for accomplishing the present invention can be easilyconstrued by programmers skilled in the art to which the presentinvention pertains.

Although a few embodiments of the present invention have been shown anddescribed, it would be appreciated by those skilled in the art thatchanges may be made in this embodiment without departing from theprinciples and spirit of the invention, the scope of which is defined inthe claims and their equivalents.

What is claimed is:
 1. A method of printing data having a predeterminedformat, the method comprising: receiving the data having thepredetermined format from a terminal device using Bluetoothcommunication; and combining the received data having the predeterminedformat with template data corresponding to the terminal device andstored in a printing apparatus; and printing the combined data.
 2. Themethod of claim 1, further comprising: receiving combination dataincluding the data having the predetermined format and template datafrom the terminal device; and extracting the template data from thereceived combination data; and storing the extracted template data astemplate data as the stored template data corresponding to the terminaldevice.
 3. The method of claim 1, wherein the predetermined format is atleast one of a plurality of formats including a vCard format, avCalendar format, a vMessage format, and/or a vNote format.
 4. Themethod of claim 1, further comprising: mapping and storing the templatedata corresponding to the terminal device with identificationinformation of the terminal device.
 5. The method of claim 2, whereinthe extracting of the template data comprises storing the extractedtemplate data or updating the stored template data with the extractedtemplate data, when the template data corresponding to the terminaldevice is already stored.
 6. The method of claim 5, wherein whether tostore the extracted template data or update the stored template data isdetermined based on a selection result that is received through a userinterface.
 7. The method of claim 1, further comprising updating thestored template data, when at least one attribute that is not includedin the stored template data is included in the received data with thepredetermined format.
 8. The method of claim 2, wherein the combinationdata and the template data are an XHTML-Print type.
 9. Acomputer-readable recording medium having embodied thereon a computerprogram for executing the method of claim
 1. 10. An apparatus to printdata having a predetermined format, the apparatus comprising: acommunication unit to receive data having the predetermined format froma terminal device using Bluetooth communication; a storage unit to storetemplate data corresponding to the terminal device; a printing datagenerator to combine the received data having the predetermined formatwith the stored template data and to generate print data using thecombined data; and a printing unit to print the generated print data.11. The apparatus of claim 10, further comprising a template extractorto extract the template data from received combination data whenreceiving the combination data including the data with the predeterminedformat and the template data from the terminal device, and to store theextracted template data in the storage unit as the template datacorresponding to the terminal device.
 12. The apparatus of claim 10,wherein the predetermined format is at least one of a plurality offormats including a vCard format, a vCalendar format, a vMessage format,and/or a vNote format.
 13. The apparatus of claim 10, wherein thetemplate data corresponding to the terminal device is mapped withidentification information of the terminal device and stored.
 14. Theapparatus of claim 11, wherein the template extractor stores theextracted template data or updates the stored template data, when thetemplate data corresponding to the terminal device is already stored inthe storage unit.
 15. The apparatus of claim 14, wherein whether tostore the extracted template data or to update the previously storedtemplate data is determined based on a selection result that is receivedthrough a user interface.
 16. The apparatus of claim 10, wherein thestored template data is updated when at least one attribute that is notincluded in the stored template data is included in the received datawith the predetermined format.
 17. The apparatus of claim 11, whereinthe combination data and the template data are an XHTML-Print type. 18.A method of storing template data, the method comprising: receivingcombination data, including data having a predetermined format andtemplate data from a terminal device, using Bluetooth communication;extracting the template data from the received combination data; mappingthe extracted template data with identification information of theterminal device; and storing the extracted template data.
 19. The methodof claim 18, wherein the predetermined format is at least one of aplurality of formats including a vCard format, a vCalendar format, avMessage format, and/or a vNote format.
 20. A method of printing data ina uniform fashion regardless of where the data is printed, the methodcomprising: receiving data having a predetermined format from a terminaldevice; retrieving stored template data corresponding to thepredetermined format and the terminal device; combining the data havingthe predetermined format with the stored template data; and printing thecombined data and stored template data.
 21. The method of claim 20,further comprising: receiving template data corresponding to a fileformat from the terminal device; and storing the received template dataas the stored template data together with an identifier of the terminaldevice.
 22. The method of claim 21, wherein, if the stored template dataalready exists, the storing of the received template data comprises:updating the stored template data with the received template data; orstoring the received template data as additional template data.
 23. Themethod of claim 20, further comprising: combining the data having thepredetermined format with default template data corresponding to thepredetermined format but not corresponding to the terminal device, ifthe stored template data is not available; and printing the combineddata and default template data.
 24. A printing system comprising: aprinting apparatus to receive data having a predetermined format, toextract stored template data corresponding to the predetermined data, tocombine the data with the stored template data, and to print thecombined data; and a terminal device to transmit the data having apredetermined format to the printing apparatus; wherein the storedtemplate data has an identifier corresponding to the terminal device.